﻿@helper EditorAndResult(string editorId, string resultId, string viewModelProperty)
{
    <div data-bind="with: viewModel.@viewModelProperty">
        <div id="@resultId"></div>
        <textarea class="ckeditor" name="@editorId" id="@editorId"></textarea>
    </div>
}

@helper EditorAndResult(string editorId, string resultId)
{
    <div id="@resultId"></div>
    <textarea class="ckeditor" name="@editorId" id="@editorId"></textarea>
}

@helper Result(string resultId)
{
    <div id="@resultId"></div>
}

@helper Editor(string editorId)
{
    <textarea class="ckeditor" name="@editorId" id="@editorId"></textarea>
}

@helper Editor(string editorId, string viewModelProperty)
{
    <div data-bind="with: $root.@viewModelProperty">
        <textarea class="ckeditor" name="@editorId" id="@editorId"></textarea>
        <button data-bind="click: Save" type="button" class="btn btn-action">Vista previa</button>
    </div>
}


